import Layout from '@/layout'

const financialManage = {
  path: '/financialManage',
  component: Layout,
  redirect: '/financialManage/billingList',
  name: 'financialManage',
  meta: {
    title: '财务管理',
    icon: 'form',
    roles: ['SYSTEM_USER', 'TENANT_USER', 'ORG_USER']
  },
  children: [

    {
      path: '/financialManage/paymentList',
      component: () => import('@/views/financialManage/paymentList/index'),
      name: 'paymentList',
      meta: { title: '支付列表', roles: ['TENANT_USER', 'ORG_USER'] }
    },
    {
      path: '/financialManage/billingList',
      component: () => import('@/views/financialManage/billingList/index'),
      name: 'billingList',
      meta: { title: '开票列表', roles: ['SYSTEM_USER', 'TENANT_USER', 'ORG_USER'] }
    },
    {
      path: '/financialManage/invoiceList',
      component: () => import('@/views/financialManage/invoiceList/index'),
      name: 'invoiceList',
      meta: { title: '开票单列表', roles: ['SYSTEM_USER', 'TENANT_USER', 'ORG_USER'] }
    },
    {
      path: '/financialManage/invoiceDetail',
      component: () => import('@/views/financialManage/invoiceDetail/index'),
      name: 'invoiceDetail',
      hidden: true,
      meta: { title: '开票单详情', roles: ['SYSTEM_USER', 'TENANT_USER', 'ORG_USER'] }
    },
    {
      path: '/financialManage/waybillTracking',
      component: () => import('@/views/financialManage/waybillTracking/index'),
      name: 'waybillTracking',
      meta: { title: '运单跟踪列表', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/financialManage/withdrawList',
      component: () => import('@/views/financialManage/withdrawList/index'),
      name: 'withdrawList',
      meta: { title: '提现申请列表', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/financialManage/withdrawalFlow',
      component: () => import('@/views/financialManage/withdrawalFlow/index'),
      name: 'withdrawalFlow',
      meta: { title: '提现流水', roles: ['SYSTEM_USER'] }
    }
  ]
}
export default financialManage
